import request from '@/utils/request'

// 查询排放因子列表
export function listCompanyGrid(query) {
  return request({
    url: '/busi/companyGrid/list',
    method: 'get',
    params: query
  })
}

// 查询排放因子详细
export function getCompanyGrid(id) {
  return request({
    url: '/busi/companyGrid/' + id,
    method: 'get'
  })
}

// 新增排放因子
export function addCompanyGrid(data) {
  return request({
    url: '/busi/companyGrid',
    method: 'post',
    data: data
  })
}

// 修改排放因子
export function updateCompanyGrid(data) {
  return request({
    url: '/busi/companyGrid',
    method: 'put',
    data: data
  })
}

// 删除排放因子
export function delCompanyGrid(id) {
  return request({
    url: '/busi/companyGrid/' + id,
    method: 'delete'
  })
}
